package maskedpixel.composite 
{
	import composite.IComponent;
	import composite.IXMLComponentLoader;
	import maskedpixel.MpEntity;
	
	/**
	 * ...
	 * @author MaskedPixel
	 */
	public class ComponentManager implements IComponent, IXMLComponentLoader 
	{
		
		public function ComponentManager() 
		{
			_list = new Vector.<IComponent>;
		}
		
		/* INTERFACE maskedpixel.composite.IComponent */
		
		public function set parent(value:MpEntity):void 
		{
			_parent = value;
		}
		
		public function update():void 
		{
			for (var i:uint = 0; i < _list.length;i++)
			{
				_list[i].update();
			}
		}
		
		/* INTERFACE maskedpixel.composite.IXMLComponentLoader */
		
		public function loadFromXML(xml:XML):void 
		{
			
		}
		
		private var _parent:MpEntity;
		private var _list:Vector.<IComponent>;
	}

}